<template>
  <div class="header-container" :style="{backgroundColor:bgcolor ,color:color}">
    {{title||'Header组件'}}
  </div>
</template>

<script>
export default {
  name:'MyHeader',
  props:['title','bgcolor','color']
}
</script>

<style lang="less" scoped>
  .header-container{
    background-color: blue;
    height: 45px;
    text-align: center;
    line-height: 45px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
  }
</style>